package com.tea.Model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

// 商家动态实体类
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Dynamic {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String title;        // 动态标题
    private String content;      // 动态内容
    private String coverImage;   // 封面图地址
    private Long typeId;         // 动态分类ID
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}